package com.example.moonshine.redzxingtree.Activity;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.example.moonshine.redzxingtree.R;
import com.github.zackratos.ultimatebar.UltimateBar;

/**
 * Created by moonshine on 2018/4/25.
 */

public class banbenActivity extends Activity {
    @Override
    protected void  onCreate(Bundle savedInstanceStated) {
        super.onCreate(savedInstanceStated);
        setContentView(R.layout.activity_banben);
        UltimateBar.newColorBuilder()
                .statusColor(Color.parseColor("#02406c")) // 状态栏颜色
                .statusDepth(50)                // 状态栏颜色深度
                .build(this)
                .apply();
        ImageView imageView = findViewById(R.id.return_view);
        imageView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.putExtra("index","1");
                intent.setClass(banbenActivity.this,MainActivity.class);
                startActivity(intent);
                finish();
            }
        });
    }
    public void finish() {
        super.finish();
        overridePendingTransition(R.anim.down_in, R.anim.down_out);
    }
}
